package com.raymond.entity;

import com.raymond.annotation.XmlNode;
import com.raymond.annotation.XmlRootNode;

import java.util.List;

/**
 * 网关返回报文实体类
 * @author tangcy
 * @date 2019/11/26 14:49
 */
@XmlRootNode(name = "root")
public class ReturnMessage
{
    /**
     * 返回状态
     */
    @XmlNode(name = "statusCode")
    private String statusCode;

    /**
     * 返回状态说明描述
     */
    @XmlNode(name = "errorMsg")
    private String errorMsg;

    /**
     * 平台流水号
     */
    @XmlNode(name = "smid")
    private String smid;

    /**
     * 与发送请求中的sendId一致
     */
    @XmlNode(name = "sendId")
    private String sendId;

    /**
     * 与发送请求中的phoneNo一致
     */
    @XmlNode(name = "phoneNo")
    private String phoneNo;

    @XmlNode(name = "body")
    private List<SmsBody> body;

    public String getStatusCode()
    {
        return statusCode;
    }

    public void setStatusCode(String statusCode)
    {
        this.statusCode = statusCode;
    }

    public String getErrorMsg()
    {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg)
    {
        this.errorMsg = errorMsg;
    }

    public String getSmid()
    {
        return smid;
    }

    public void setSmid(String smid)
    {
        this.smid = smid;
    }

    public String getSendId()
    {
        return sendId;
    }

    public void setSendId(String sendId)
    {
        this.sendId = sendId;
    }

    public String getPhoneNo()
    {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo)
    {
        this.phoneNo = phoneNo;
    }

    public List<SmsBody> getBody() {
        return body;
    }

    public void setBody(List<SmsBody> body) {
        this.body = body;
    }
}
